<!DOCTYPE html>
<html lang="en" style="font-size: 37.5px">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
            #banner {
                width: 8.933rem;
                height: 3.84rem;
                margin: 2.586rem auto 0;
                background: rgb(9, 152, 177);
            }
        </style>
    </head>
    <body>
        <div id="banner"></div>

        <script>
            function adapter() {
                //设置根标签的大小
                document.documentElement.style.fontSize = document.documentElement.clientWidth / 10 + "px";
            }

            adapter();

            window.onresize = adapter;
        </script>
    </body>
</html>
